//
//  ASINetworkQueueHandle.m
//  UESTCPioneer
//
//  Created by Apple on 14-5-14.
//  Copyright (c) 2014年 Sway. All rights reserved.
//

#import "ASINetworkQueueHandle.h"

@implementation ASINetworkQueueHandle

static ASINetworkQueue *sharedQueue = nil;

+(ASINetworkQueue*)sharedInstance{
    static dispatch_once_t once;
    dispatch_once(&once, ^{
        sharedQueue = [[ASINetworkQueue alloc] init];
        sharedQueue.showAccurateProgress = YES;
//        sharedQueue.shouldCancelAllRequestsOnFailure = NO;
        [sharedQueue go];
        printf("创建下载队列结束!\n");
    });
    NSLog(@"sharesQueue = %@ ",sharedQueue);
    return sharedQueue;
}

@end
